from django.db import models


# Create your models here.

class AccountInfo(models.Model):
    info = models.CharField(verbose_name='关联信息', max_length=32, null=True, blank=True)
    account = models.CharField(verbose_name='账号', max_length=32, null=True, blank=True)
    pwd = models.CharField(verbose_name='密码', max_length=32, null=True, blank=True)
    connect = models.CharField(verbose_name='相关连接', max_length=32, null=True, blank=True)
    email = models.CharField(verbose_name='关联邮箱', max_length=32, null=True, blank=True)
    phone = models.CharField(verbose_name='关联电话', max_length=32, null=True, blank=True)
    detail = models.TextField(verbose_name='详细信息', null=True, blank=True)
    remarks = models.TextField(verbose_name='备注', null=True, blank=True)
    create_date = models.DateTimeField(verbose_name='创建日期', auto_now_add=True)
    update_date = models.DateTimeField(verbose_name='更新日期', auto_now=True)

    class Meta:
        verbose_name_plural = verbose_name = '账号信息'


class RoleInfo(models.Model):
    roleId = models.AutoField(verbose_name='角色编号',  db_comment='角色编号', primary_key=True)
    roleName = models.CharField(verbose_name='角色名称', db_comment='角色名称', max_length=20)


class UserInfo:
    userid = models.CharField(verbose_name='', db_comment='')
